package com.tgjorgoski.utils;

import java.io.File;

import com.tgjorgoski.window.Session;

public class FileMethods {
	private static char dirSep = System.getProperty("file.separator").charAt(0);

	public static String getNormPath(File f) {
		String rootFolder = Session.getHomeFolder();
		String cPath = f.getPath().replace(dirSep, '/');
		String rootPath = rootFolder.replace(dirSep, '/');
		String filePath = cPath.replace(rootPath, "");
		return filePath;
	}

}
